<template>
  <el-carousel :interval="3000" type="card" height="500px">
    <el-carousel-item v-for="item in imgs" :key="item">
      <img :src="item.src" id="img" />
    </el-carousel-item>
  </el-carousel>
</template>

<script>
export default {
  name: "welcomeIndex",
  data() {
    return {
      imgs: [
        {
          src: require("@/img/wel1.jpg"),
        },
        {
          src: require("@/img/wel2.jpg"),
        },
        {
          src: require("@/img/wel3.jpg"),
        },
      ],
    };
  },
};
</script>
<style scoped>
#img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}
.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>
